{template 'common/header-base'}
{template 'common/common'}
<aside class="wn-aside clearfix">
	{if !empty($aside_show)}
	<div class="wn-aside__back"><a href="{php echo $this->createWebUrl('storemanage', array('op' => 'list'))}"> <i class="fa fa-backward"></i>返回主模块 ({$_W['wn_storex']['store_info']['title']})</a></div>
	{if !($_GPC['do'] == 'shop_settings' && $_GPC['op'] == 'post' && $_GPC['action'] == 'add')}
	<nav class="wn-aside__menu">
		<img src="{php echo tomedia($_W['wn_storex']['store_info']['thumb'])}" alt="" class="wn-aside__logo">
		<ul class="wn-aside__nav">
			{loop $aside_nav $key $nav}
			<li class="wn-aside__nav__item {if in_array($_GPC['do'], $nav['active'])}wn-aside__nav__item--active{/if}"><a href="{$nav['url']}"><i class="{$nav['icon']}"></i>{$nav['title']}</a></li>
			{/loop}
		</ul>
	</nav>
	{/if}
	{if !empty($sub_menu)}
	<nav class="wn-aside__submenu">
		<div class="wn-aside__title">设置</div>
		<ul class="wn-aside__sub">
			{loop $sub_menu $child}
			<li class="wn-aside__sub__item {if in_array($_GPC['do'], $child['active'])}wn-aside__sub__item--active{/if}"><a href="{$child['url']}">{$child['title']}</a></li>
			{/loop}
		</ul>
	</nav>
	{/if}
	{/if}
</aside>
